package com.maxlen.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.goods.entity.AttrAttrgroupRelationEntity;
import com.maxlen.goods.entity.AttrEntity;
import com.maxlen.goods.entity.dto.AttrAttrgroupRelationInfoDTO;
import com.maxlen.goods.entity.dto.AttrNoInfoDTO;
import com.maxlen.goods.entity.vo.AttrAttrgroupRelationDelVO;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void updateAttrgroup(Long attrId, Long attrGroupId);

    List<AttrEntity> getDetailById(Long attrgroupId);

    void removeDetail(List<AttrAttrgroupRelationDelVO> relationDelVOList);

    PageUtils getNoDetailById(Map<String, Object> params, Long attrgroupId);

    void saveDetail(List<AttrAttrgroupRelationDelVO> attrAttrgroupRelationDelVO);

    void removeDetailByAttrId(List<Long> asList);

    void removeDetailByAttrgroupId(List<Long> attrGroupIds);
}

